package CTRLayer;

import java.util.ArrayList;
import DBLayer.DBRegistrationSchema;
import ModelLayer.RegistrationSchema;

public class RegistrationSchemaCTR
{
	public ArrayList<RegistrationSchema> findAllRegistrationSchemas()
    {
		DBRegistrationSchema dbRegistrationSchema = new DBRegistrationSchema();
        ArrayList<RegistrationSchema> allRegistrationSchemas = new ArrayList<RegistrationSchema>();
        allRegistrationSchemas = dbRegistrationSchema.getAllRegistrationSchemas(false);
        return allRegistrationSchemas;
    }
	
	public RegistrationSchema findRegistrationSchemaID(int registrationSchemaID)
	{
		DBRegistrationSchema dbRegistrationSchema = new DBRegistrationSchema();
		return dbRegistrationSchema.searchRegistrationSchemaID(registrationSchemaID, true);
	}
	
	public RegistrationSchema findRegistrationSchemaByResponseListID(int responseListID)
	{
		DBRegistrationSchema dbRegistrationSchema = new DBRegistrationSchema();
		return dbRegistrationSchema.searchRegistrationSchemaID(responseListID, true);
	}
}